package com.briup.oagg.dataset.service.impl;

import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.briup.framework.utils.execption.BriupAssert;
import com.briup.framework.utils.execption.BriupFrameworkException;
import com.briup.oagg.dataset.bean.basic.Dataset;
import com.briup.oagg.dataset.bean.basic.Indicator;
import com.briup.oagg.dataset.mapper.basic.DatasetMapper;
import com.briup.oagg.dataset.mapper.basic.IndicatorMapper;
import com.briup.oagg.dataset.mapper.ext.DataExtMapper;
import com.briup.oagg.dataset.service.IDataService;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStreamReader;
import java.util.*;
import java.util.stream.Collectors;

import static com.briup.oagg.dataset.constants.DatasetConstants.DatasetStatus.*;

/**
 * 数据集的数据业务逻辑接口实现类
 *
 * @Author briup
 */
@Service
public class DataServiceImpl implements IDataService {
    @Override
    public void importData(MultipartFile dataFile, String datasetId) {

    }

    @Override
    public Page<Map> findByPage(String datasetId, Integer pageNum, Integer pageSize) {
        return null;
    }

    @Override
    public void deleteById(String datasetId, String dataId) {

    }

    @Override
    public List<Map> findByDatasetId(String datasetId) {
        return null;
    }
}
